package run;

import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import no.ntnu.fp.gui.Login;
import no.ntnu.fp.gui.MainFrame;
import no.ntnu.fp.model.Employee;
import no.ntnu.fp.net.DBConnection;

public class Main {
	public static MainFrame mainFrame;
	public static Employee user;
	public static DBConnection dbConn;
	
	
	/**
	 * @param args arguments passed by run command
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InstantiationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IllegalAccessException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (UnsupportedLookAndFeelException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		dbConn = new DBConnection();
		Login loginFrame = new Login();
		loginFrame.setVisible(true);	
		
	}

}
